﻿<!-- Phan khai bao bien cuc bo-->
<?php
$v_worktype = "";
if(isset($_REQUEST['hdn_worktype'])){
	$v_worktype = $_REQUEST['hdn_worktype'];
}
$v_customer_name= "";
if(isset($_REQUEST['hdn_customer_name'])){
	$v_customer_name = $_REQUEST['hdn_customer_name'];
}
$v_customer_card_id = "";
if(isset($_REQUEST['hdn_customer_card_id'])){
	$v_customer_card_id = $_REQUEST['hdn_customer_card_id'];
}
if ($v_worktype=="REGISTER"){
	$v_display_code = "none";
	$v_code_optional = true;
}else{
	$v_display_code = "block";
	$v_code_optional = false;
}
$v_recordtype_filter = "";
?>
<!--bang chua tieu de cua form-->
<table width="100%" cellpadding="0" cellspacing="0">
	<tr class="large_title">
		<td><?php echo CONST_REGISTOR_IDENTITY_STEP2_TITLE; ?></td>
	</tr>
</table>
<!-- Bat cac phim: F12=true; Insert=false; Delete=false, ESC=true; Enter=true -->
<div id="hotkey" onKeyDown="javascript:process_hot_key(true,false,false,true,true);">
<!--bang chua cac text box de nhap du lieu-->
<table width="100%" class="form_table1" border="0" cellpadding="0" cellspacing="0">
	<col width="15%"><col width="35%"><col width="20%"><col width="30%">
	<tr>
		<form action="index.php" method="post" name="f_dsp_single_recordtype_identity">
		<input type="hidden" name="fuseaction" value="DISPLAY_SINGLE_RECORDTYPE_IDENTITY" >
		<input type="hidden" name="hdn_customer_record_id"  value="<?php echo $v_customer_record_id; ?>">
		<input type="hidden" name="hdn_deploy_unit" value="<?php echo $_ISA_OWNER_CODE;?>" >
		<input type="hidden" name="hdn_year" value="<?php echo date("y");?>">
		<input type="hidden" name="hdn_recordtype_filter" value="<?php echo $v_recordtype_filter; ?>">
		<input type="hidden" name="hdn_customer_name" value="<?php echo $v_customer_name; ?>">
		<input type="hidden" name="hdn_customer_card_id" value="<?php echo $v_customer_card_id; ?>">
		<input type="hidden" name="hdn_edit_mode" value="0">
		<input type="hidden" name="hdn_code" value="">
	</tr>
	<tr>
		<td align="left" class="normal_label"><?php echo CONST_RECORDTYPE_OWNER_CODE_LIST_LABEL;?>&nbsp;&nbsp;</td>
		<td colspan="3">
			<select class='normal_selectbox' name='sel_deploy_unit' optional='true' disabled style='width:100%'>";
				<?php echo _generate_select_option($arr_deploy_unit,'0','0','1', $_ISA_OWNER_CODE);?>
			</select>
		</td>		
	</tr>
	<tr>
		<td align="left" class="normal_label"><?php echo CONST_RECORDTYPE_LIST_LABEL;?>&nbsp;&nbsp;</td>
		<td colspan="3">
			<select class='normal_selectbox' name='sel_recordtype' optional='true' style='width:100%' onChange="onchange_generate_code_net(this,document.forms(0).hdn_recordtype_filter,'DISPLAY_SINGLE_RECORDTYPE_IDENTITY');">";
				<?php echo _generate_select_option($arr_all_recordtype,'0','0','1', $v_recordtype_filter);?>
			</select>
		</td>		
	</tr>
	<tr style="display:<?php echo $v_display_code; ?>">
		<td align="left" class="normal_label"><?php echo CONST_REGISTOR_CODE_IDENTITY_LABEL;?>&nbsp;&nbsp;</td>
		<td colspan="3">
			<input type="text" name="txt_code1" readonly class="normal_textbox" style="width:26%" optional="<?php echo $v_code_optional; ?>" message = "<?php echo CONST_REGISTOR_CODE_IDENTITY_MESSAGE; ?>" value="" onKeyDown="change_focus(document.forms(0),this);">
			<input type="text" name="txt_code2" class="normal_textbox" style="width:20%" optional="<?php echo $v_code_optional; ?>" message = "<?php echo CONST_REGISTOR_CODE_IDENTITY_MESSAGE; ?>" value="" onKeyDown="change_focus(document.forms(0),this);">			
		</td>		
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
<!--bang chua cac button-->
<table width="100%" cellpadding="0" cellspacing="0">
	<tr><td>&nbsp;</td></tr>
	<tr>
		<td align="center">
			<input type="button" name="btn_save"  class="normal_button" value="<?php echo CONST_RECORDTYPE_CONTINUE_BUTTON;?>"  style="width:100px"  onClick="onchange_generate_code_net(document.forms(0).sel_recordtype,document.forms(0).hdn_recordtype_filter,'DISPLAY_SINGLE_RECORDTYPE_IDENTITY');btn_save_onclick('DISPLAY_SINGLE_CUSTOMER_RECORD');" onKeyDown="change_focus(document.forms(0),this)">
			<input type="button" name="btn_back" class="normal_button" value="<?php echo _CONST_BACK_BUTTON;?>" onClick="btn_back_onclick('<?php echo $_GO_BACK?>');" onKeyDown="change_focus(document.forms(0),this)">
		</td>
	</tr>
</table>					
</div>
</form>
<script language="JavaScript">
	set_focus(document.forms(0));
	onchange_generate_code_net(document.forms(0).sel_recordtype,document.forms(0).hdn_recordtype_filter,'DISPLAY_SINGLE_RECORDTYPE_IDENTITY');
</script>
